package java_methods.constructor_method;

public class Demo {
	
	Demo(){
		System.out.println
			("I am called whenever an object is created");
	}
	
	void display(){
		System.out.println
			("I have to called explicitly using an object");
	}
	
	public static void main(String[] args) {
		
		// Constructor returns address of newly created object
		Demo demo = new Demo();
		demo.display();
	}
}

